import * as React from 'react';
import { Button } from 'ticket-ui';
import './index.module.scss';

const { memo } = React;

interface SubmitProps {
  handleClick: () => void;
}

export default memo(function Submit(props: SubmitProps) {
  const { handleClick } = props;
  return (
    <div styleName="submit">
      <Button styleName="submit-button" onClick={handleClick}>
        {' '}
        搜索{' '}
      </Button>
    </div>
  );
});
